To get the password for the "CHEST" you need to 
get the real ending by completing the game with certain
characters, other characters have their own endings without
giving any passwords

so keep playing!